<template>
  <ant-modal
    modalWidth="800"
    modalHeight="550"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model
      ref="form"
      :model="form"
      :rules="rules"
      slot="content"
      layout="vertical"
    >
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="创建者" prop="userId">
            <a-input v-model="form.userId" placeholder="请输入创建者" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="创建部门" prop="deptId">
            <a-input v-model="form.deptId" placeholder="请输入创建部门" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="创建名称" prop="userName">
            <a-input v-model="form.userName" placeholder="请输入创建名称" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="部门名称" prop="deptName">
            <a-input v-model="form.deptName" placeholder="请输入部门名称" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="公司ID" prop="companyId">
            <a-input v-model="form.companyId" placeholder="请输入公司ID" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="所属公司" prop="deptidStr">
            <a-input v-model="form.deptidStr" placeholder="请输入所属公司" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="分管领导" prop="fgbmleaderStr">
            <a-input
              v-model="form.fgbmleaderStr"
              placeholder="请输入分管领导"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="资产名称" prop="name">
            <a-input v-model="form.name" placeholder="请输入资产名称" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="资产价值" prop="assetvalue">
            <a-input v-model="form.assetvalue" placeholder="请输入资产价值" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="总投资" prop="investment">
            <a-input v-model="form.investment" placeholder="请输入总投资" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item
            label="地址
地址
地址"
            prop="address"
          >
            <a-input
              v-model="form.address"
              placeholder="请输入地址
地址
地址"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="经度" prop="lon">
            <a-input v-model="form.lon" placeholder="请输入经度" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="纬度" prop="lat">
            <a-input v-model="form.lat" placeholder="请输入纬度" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="建筑面积" prop="area">
            <a-input-number v-model="form.area" :min="0" style="width: 100%" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="排序" prop="sort">
            <a-input-number v-model="form.sort" :min="0" style="width: 100%" />
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button @click="cancel"> 取消 </a-button>
      <a-button type="primary" @click="submitForm"> 保存 </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizAnhuanZicanDetailsAddForm from "./BizAnhuanZicanDetailsForm";
export default {
  ...BizAnhuanZicanDetailsAddForm,
};
</script>
